<%@ page import="com.pandorasoft.shop.Consumer" %>



<div class="fieldcontain ${hasErrors(bean: consumerInstance, field: 'accept', 'error')} ">
	<label for="accept">
		<g:message code="consumer.accept.label" default="Accept" />
		
	</label>
	<g:textField name="accept" value="${consumerInstance?.accept}" />
</div>

<div class="fieldcontain ${hasErrors(bean: consumerInstance, field: 'date', 'error')} required">
	<label for="date">
		<g:message code="consumer.date.label" default="Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="date" precision="day" value="${consumerInstance?.date}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: consumerInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="consumer.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${consumerInstance?.name}" />
</div>

<div class="fieldcontain ${hasErrors(bean: consumerInstance, field: 'phone', 'error')} ">
	<label for="phone">
		<g:message code="consumer.phone.label" default="Phone" />
		
	</label>
	<g:textField name="phone" value="${consumerInstance?.phone}" />
</div>

<div class="fieldcontain ${hasErrors(bean: consumerInstance, field: 'shop', 'error')} required">
	<label for="shop">
		<g:message code="consumer.shop.label" default="Shop" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="shop.id" from="${com.pandorasoft.shop.Shop.list()}" optionKey="id" value="${consumerInstance?.shop?.id}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: consumerInstance, field: 'tel', 'error')} ">
	<label for="tel">
		<g:message code="consumer.tel.label" default="Tel" />
		
	</label>
	<g:textField name="tel" value="${consumerInstance?.tel}" />
</div>

<div class="fieldcontain ${hasErrors(bean: consumerInstance, field: 'time', 'error')} ">
	<label for="time">
		<g:message code="consumer.time.label" default="Time" />
		
	</label>
	<g:textField name="time" value="${consumerInstance?.time}" />
</div>

